package com.zhangshuo.patternDesign.singleton;

/**
 * Created by shuo.zhang on 2017-10-17.
 */
public class Singleton3 {

    private Singleton3(){}

    //访问任何的静态域都会初始化变量
    private static Singleton3 instance = new Singleton3();

    public static Singleton3 getInstance(){
        return instance;
    }
}
